#version 330 core
// vim: set filetype=cpp :vim

uniform mat4 mView;
uniform mat4 mProj;

uniform ivec3 p0int;

layout(location=0) in ivec3 pos;
layout(location=1) in vec3 norm;

out vec3 vnorm;

void main(void) {
	vnorm=mat3(mView)*norm;
	gl_Position=mProj*mView*vec4((pos-p0int)/256.0, 1.0);
}
